home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / samba.idb / usr / share / catman / u_man / cat8 / smbd.8.Z / smbd.8
Encoding:
Text File  |  1998-10-28  |  23.6 KB  |  529 lines

  1.  
  2.  
  3.  
  4.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           smbd - provide SMB (aka LanManager) services to clients
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           ssssmmmmbbbbdddd [ ----DDDD ] [ ----aaaa ] [ ----dddd _d_e_b_u_g_l_e_v_e_l ] [ ----llll _l_o_g _f_i_l_e ] [ ----pppp
  13.           _p_o_r_t _n_u_m_b_e_r ] [ ----OOOO _s_o_c_k_e_t _o_p_t_i_o_n_s ] [ ----ssss _c_o_n_f_i_g_u_r_a_t_i_o_n _f_i_l_e
  14.           ]
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.           This program is part of the Samba suite.
  18.  
  19.           ssssmmmmbbbbdddd is a server that can provide most SMB services. The
  20.           server provides filespace and printer services to clients
  21.           using the SMB protocol. This is compatible with the
  22.           LanManager protocol, and can service LanManager clients.
  23.           These include MSCLIENT 3.0 for DOS, Windows for Workgroups,
  24.           Windows 95, Windows NT, OS/2, DAVE for Macintosh, and smbfs
  25.           for Linux.
  26.  
  27.           An extensive description of the services that the server can
  28.           provide is given in the man page for the configuration file
  29.           controlling the attributes of those services (see
  30.           ssssmmmmbbbb....ccccoooonnnnffff(5)).  This man page will not describe the services,
  31.           but will concentrate on the administrative aspects of
  32.           running the server.
  33.  
  34.           Please note that there are significant security implications
  35.           to running this server, and ssssmmmmbbbb....ccccoooonnnnffff(5) should be regarded
  36.           as mandatory reading before proceeding with installation.
  37.  
  38.           A session is created whenever a client requests one. Each
  39.           client gets a copy of the server for each session. This copy
  40.           then services all connections made by the client during that
  41.           session. When all connections from its client are are
  42.           closed, the copy of the server for that client terminates.
  43.  
  44.           The configuration file, and any files that it includes, are
  45.           automatically reloaded every minute, if they change.  You
  46.           can force a reload by sending a SIGHUP to the server.
  47.           Reloading the configuration file will not affect connections
  48.           to any service that is already established.  Either the user
  49.           will have to disconnect from the service, or smbd killed and
  50.           restarted.
  51.  
  52.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  53.           ----DDDD
  54.  
  55.              If specified, this parameter causes the server to operate
  56.              as a daemon. That is, it detaches itself and runs in the
  57.              background, fielding requests on the appropriate port.
  58.  
  59.              By default, the server will NOT operate as a daemon.
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/26/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  71.  
  72.  
  73.  
  74.           ----aaaa
  75.  
  76.              If this parameter is specified, the log files will be
  77.              overwritten with each new connection. By default, the log
  78.              files will be appended to.
  79.  
  80.           ----dddd _d_e_b_u_g_l_e_v_e_l
  81.  
  82.              debuglevel is an integer from 0 to 10.
  83.  
  84.              The default value if this parameter is not specified is
  85.              zero.
  86.  
  87.              The higher this value, the more detail will be logged to
  88.              the log files about the activities of the server. At
  89.              level 0, only critical errors and serious warnings will
  90.              be logged. Level 1 is a reasonable level for day to day
  91.              running - it generates a small amount of information
  92.              about operations carried out.
  93.  
  94.              Levels above 1 will generate considerable amounts of log
  95.              data, and should only be used when investigating a
  96.              problem. Levels above 3 are designed for use only by
  97.              developers and generate HUGE amounts of log data, most of
  98.              which is extremely cryptic.
  99.  
  100.           ----llll _l_o_g _f_i_l_e
  101.  
  102.              If specified, _l_o_g_f_i_l_e specifies a base filename into
  103.              which operational data from the running server will be
  104.              logged.
  105.  
  106.              The default base name is specified at compile time.
  107.  
  108.              The base name is used to generate actual log file names.
  109.              For example, if the name specified was "log", the
  110.              following files would be used for log data:
  111.  
  112.                 log.debug (containing debugging information)
  113.  
  114.                 log.in (containing inbound transaction data)
  115.  
  116.                 log.out (containing outbound transaction data)
  117.  
  118.              The log files generated are never removed by the server.
  119.  
  120.           ----OOOO _s_o_c_k_e_t _o_p_t_i_o_n_s
  121.  
  122.              See the socket options section of ssssmmmmbbbb....ccccoooonnnnffff(5) for details
  123.  
  124.           ----pppp _p_o_r_t _n_u_m_b_e_r
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/26/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  137.  
  138.  
  139.  
  140.              port number is a positive integer value.
  141.  
  142.              The default value if this parameter is not specified is
  143.              139.
  144.  
  145.              This number is the port number that will be used when
  146.              making connections to the server from client software.
  147.              The standard (well-known) port number for the server is
  148.              139, hence the default. If you wish to run the server as
  149.              an ordinary user rather than as root, most systems will
  150.              require you to use a port number greater than 1024 - ask
  151.              your system administrator for help if you are in this
  152.              situation.
  153.  
  154.              In order for the server to be useful by most clients,
  155.              should you configure it on a port other than 139, you
  156.              will require port redirection services on port 139,
  157.              details of which are outlined in rfc1002.txt section
  158.              4.3.5.
  159.  
  160.              This parameter is not normally specified except in the
  161.              above situation.
  162.  
  163.           ----ssss _c_o_n_f_i_g_u_r_a_t_i_o_n _f_i_l_e
  164.  
  165.              The default configuration file name is determined at
  166.              compile time.
  167.  
  168.              The file specified contains the configuration details
  169.              required by the server.  The information in this file
  170.              includes server-specific information such as what
  171.              printcap file to use, as well as descriptions of all the
  172.              services that the server is to provide. See ssssmmmmbbbb....ccccoooonnnnffff(5)
  173.              for more information.
  174.  
  175.      FFFFIIIILLLLEEEESSSS
  176.           ////eeeettttcccc////iiiinnnneeeettttdddd....ccccoooonnnnffff
  177.  
  178.              If the server is to be run by the inetd meta-daemon, this
  179.              file must contain suitable startup information for the
  180.              meta-daemon. See the section "INSTALLATION" below.
  181.  
  182.           ////eeeettttcccc////rrrrcccc
  183.  
  184.              (or whatever initialisation script your system uses)
  185.  
  186.              If running the server as a daemon at startup, this file
  187.              will need to contain an appropriate startup sequence for
  188.              the server. See the section "INSTALLATION" below.
  189.  
  190.           ////eeeettttcccc////sssseeeerrrrvvvviiiicccceeeessss
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                         (printed 10/26/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  203.  
  204.  
  205.  
  206.              If running the server via the meta-daemon inetd, this
  207.              file must contain a mapping of service name (eg.,
  208.              netbios-ssn)  to service port (eg., 139) and protocol
  209.              type (eg., tcp). See the section "INSTALLATION" below.
  210.  
  211.           ////uuuussssrrrr////llllooooccccaaaallll////ssssaaaammmmbbbbaaaa////lllliiiibbbb////ssssmmmmbbbb....ccccoooonnnnffff
  212.  
  213.              This file describes all the services the server is to
  214.              make available to clients. See ssssmmmmbbbb....ccccoooonnnnffff(5) for more
  215.              information.
  216.  
  217.      LLLLIIIIMMMMIIIITTTTAAAATTTTIIIIOOOONNNNSSSS
  218.           On some systems ssssmmmmbbbbdddd cannot change uid back to root after a
  219.           setuid() call.  Such systems are called "trapdoor" uid
  220.           systems. If you have such a system, you will be unable to
  221.           connect from a client (such as a PC) as two different users
  222.           at once. Attempts to connect the second user will result in
  223.           "access denied" or similar.
  224.  
  225.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  226.           PPPPRRRRIIIINNNNTTTTEEEERRRR
  227.  
  228.              If no printer name is specified to printable services,
  229.              most systems will use the value of this variable (or "lp"
  230.              if this variable is not defined) as the name of the
  231.              printer to use. This is not specific to the server,
  232.              however.
  233.  
  234.      IIIINNNNSSSSTTTTAAAALLLLLLLLAAAATTTTIIIIOOOONNNN
  235.           The location of the server and its support files is a matter
  236.           for individual system administrators. The following are thus
  237.           suggestions only.
  238.  
  239.           It is recommended that the server software be installed
  240.           under the /usr/local/samba hierarchy, in a directory
  241.           readable by all, writeable only by root. The server program
  242.           itself should be executable by all, as users may wish to run
  243.           the server themselves (in which case it will of course run
  244.           with their privileges).  The server should NOT be setuid. On
  245.           some systems it may be worthwhile to make smbd setgid to an
  246.           empty group. This is because some systems may have a
  247.           security hole where daemon processes that become a user can
  248.           be attached to with a debugger. Making the smbd file setgid
  249.           to an empty group may prevent this hole from being
  250.           exploited. This security hole and the suggested fix has only
  251.           been confirmed on Linux at the time this was written. It is
  252.           possible that this hole only exists in Linux, as testing on
  253.           other systems has thus far shown them to be immune.
  254.  
  255.           The server log files should be put in a directory readable
  256.           and writable only by root, as the log files may contain
  257.           sensitive information.
  258.  
  259.  
  260.  
  261.      Page 4                                         (printed 10/26/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  269.  
  270.  
  271.  
  272.           The configuration file should be placed in a directory
  273.           readable and writable only by root, as the configuration
  274.           file controls security for the services offered by the
  275.           server. The configuration file can be made readable by all
  276.           if desired, but this is not necessary for correct operation
  277.           of the server and is not recommended. A sample configuration
  278.           file "smb.conf.sample" is supplied with the source to the
  279.           server - this may be renamed to "smb.conf" and modified to
  280.           suit your needs.
  281.  
  282.           The remaining notes will assume the following:
  283.  
  284.              ssssmmmmbbbbdddd (the server program) installed in
  285.              /usr/local/samba/bin
  286.  
  287.              smb.conf (the configuration file) installed in
  288.              /usr/local/samba/lib
  289.  
  290.              log files stored in /var/adm/smblogs
  291.  
  292.           The server may be run either as a daemon by users or at
  293.           startup, or it may be run from a meta-daemon such as inetd
  294.           upon request. If run as a daemon, the server will always be
  295.           ready, so starting sessions will be faster. If run from a
  296.           meta-daemon some memory will be saved and utilities such as
  297.           the tcpd TCP-wrapper may be used for extra security.
  298.  
  299.           When you've decided, continue with either "RUNNING THE
  300.           SERVER AS A DAEMON" or "RUNNING THE SERVER ON REQUEST".
  301.  
  302.      RRRRUUUUNNNNNNNNIIIINNNNGGGG TTTTHHHHEEEE SSSSEEEERRRRVVVVEEEERRRR AAAASSSS AAAA DDDDAAAAEEEEMMMMOOOONNNN
  303.           To run the server as a daemon from the command line, simply
  304.           put the ----DDDD option on the command line. There is no need to
  305.           place an ampersand at the end of the command line - the ----DDDD
  306.           option causes the server to detach itself from the tty
  307.           anyway.
  308.  
  309.           Any user can run the server as a daemon (execute permissions
  310.           permitting, of course). This is useful for testing purposes,
  311.           and may even be useful as a temporary substitute for
  312.           something like ftp. When run this way, however, the server
  313.           will only have the privileges of the user who ran it.
  314.  
  315.           To ensure that the server is run as a daemon whenever the
  316.           machine is started, and to ensure that it runs as root so
  317.           that it can serve multiple clients, you will need to modify
  318.           the system startup files. Wherever appropriate (for example,
  319.           in /etc/rc), insert the following line, substituting port
  320.           number, log file location, configuration file location and
  321.           debug level as desired:
  322.  
  323.              /usr/local/samba/bin/smbd -D -l /var/adm/smblogs/log -s
  324.  
  325.  
  326.  
  327.      Page 5                                         (printed 10/26/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  335.  
  336.  
  337.  
  338.              /usr/local/samba/lib/smb.conf
  339.  
  340.           (The above should appear in your initialisation script as a
  341.           single line. Depending on your terminal characteristics, it
  342.           may not appear that way in this man page. If the above
  343.           appears as more than one line, please treat any newlines or
  344.           indentation as a single space or TAB character.)
  345.  
  346.           If the options used at compile time are appropriate for your
  347.           system, all parameters except the desired debug level and ----DDDD
  348.           may be omitted. See the section "OPTIONS" above.
  349.  
  350.      RRRRUUUUNNNNNNNNIIIINNNNGGGG TTTTHHHHEEEE SSSSEEEERRRRVVVVEEEERRRR OOOONNNN RRRREEEEQQQQUUUUEEEESSSSTTTT
  351.           If your system uses a meta-daemon such as inetd, you can
  352.           arrange to have the smbd server started whenever a process
  353.           attempts to connect to it. This requires several changes to
  354.           the startup files on the host machine. If you are
  355.           experimenting as an ordinary user rather than as root, you
  356.           will need the assistance of your system administrator to
  357.           modify the system files.
  358.  
  359.           You will probably want to set up the name server nnnnmmmmbbbbdddd at the
  360.           same time as ssssmmmmbbbbdddd - refer to the man page nnnnmmmmbbbbdddd(8).
  361.  
  362.           First, ensure that a port is configured in the file
  363.           /etc/services. The well-known port 139 should be used if
  364.           possible, though any port may be used.
  365.  
  366.           Ensure that a line similar to the following is in
  367.           /etc/services:
  368.  
  369.              netbios-ssn    139/tcp
  370.  
  371.           Note for NIS/YP users - you may need to rebuild the NIS
  372.           service maps rather than alter your local /etc/services
  373.           file.
  374.  
  375.           Next, put a suitable line in the file /etc/inetd.conf (in
  376.           the unlikely event that you are using a meta-daemon other
  377.           than inetd, you are on your own). Note that the first item
  378.           in this line matches the service name in /etc/services.
  379.           Substitute appropriate values for your system in this line
  380.           (see iiiinnnneeeettttdddd(8)):
  381.  
  382.              netbios-ssn stream tcp nowait root
  383.              /usr/local/samba/bin/smbd -d1 -l/var/adm/smblogs/log
  384.              -s/usr/local/samba/lib/smb.conf
  385.  
  386.           (The above should appear  in  /etc/inetd.conf  as  a  single
  387.           line. Depending on your terminal characteristics, it may not
  388.           appear that way in this man page.  If the above  appears  as
  389.           more than one line, please treat any newlines or indentation
  390.  
  391.  
  392.  
  393.      Page 6                                         (printed 10/26/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  401.  
  402.  
  403.  
  404.           as a single space or TAB character.)
  405.  
  406.           Note that there is no need to specify a  port  number  here,
  407.           even if you are using a non-standard port number.
  408.  
  409.           Lastly, edit the  configuration  file  to  provide  suitable
  410.           services.  To  start with, the following two services should
  411.           be all you need:
  412.  
  413.              [homes]
  414.                  writable = yes
  415.  
  416.              [printers]
  417.                  writable = no
  418.                  printable = yes
  419.                  path = /tmp
  420.                  public = yes
  421.  
  422.           This will allow you to connect to your  home  directory  and
  423.           print  to any printer supported by the host (user privileges
  424.           permitting).
  425.  
  426.      TTTTEEEESSSSTTTTIIIINNNNGGGG TTTTHHHHEEEE IIIINNNNSSSSTTTTAAAALLLLLLLLAAAATTTTIIIIOOOONNNN
  427.           If running  the  server  as  a  daemon,  execute  it  before
  428.           proceeding.  If  using  a  meta-daemon,  either  restart the
  429.           system or kill and restart the meta-daemon. Some versions of
  430.           inetd will reread their configuration tables if they receive
  431.           a HUP signal.
  432.  
  433.           If your machine's name is "fred" and your  name  is  "mary",
  434.           you   should   now   be  able  to  connect  to  the  service
  435.           "\\fred\mary".
  436.  
  437.           To  properly  test  and  experiment  with  the  server,   we
  438.           recommend using the smbclient program (see ssssmmmmbbbbcccclllliiiieeeennnntttt(1)).
  439.  
  440.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  441.           This man page is (mostly) correct for version 1.9.00 of  the
  442.           Samba  suite,  plus  some of the recent patches to it. These
  443.           notes  will  necessarily  lag  behind  development  of   the
  444.           software,  so it is possible that your version of the server
  445.           has extensions or parameter semantics that  differ  from  or
  446.           are not covered by this man page. Please notify these to the
  447.           address below for rectification.
  448.  
  449.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  450.           hhhhoooossssttttssss____aaaacccccccceeeessssssss(5),     iiiinnnneeeettttdddd(8),     nnnnmmmmbbbbdddd(8),     ssssmmmmbbbb....ccccoooonnnnffff(5),
  451.           ssssmmmmbbbbcccclllliiiieeeennnntttt(1),     tttteeeessssttttppppaaaarrrrmmmm(1),    tttteeeessssttttpppprrrrnnnnssss(1)    rrrrffffcccc1111000000001111....ttttxxxxtttt
  452.           rrrrffffcccc1111000000002222....ttttxxxxtttt
  453.  
  454.      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  455.           [This section under construction]
  456.  
  457.  
  458.  
  459.      Page 7                                         (printed 10/26/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      SSSSMMMMBBBBDDDD((((8888))))           ssssmmmmbbbbdddd 1111....9999....11118888pppp11110000 ((((22220000 AAAAuuuugggg 1111999999998888))))            SSSSMMMMBBBBDDDD((((8888))))
  467.  
  468.  
  469.  
  470.           Most diagnostics issued  by  the  server  are  logged  in  a
  471.           specified  log  file.  The  log  file  name  is specified at
  472.           compile time, but may be overridden on the command line.
  473.  
  474.           The number and nature of diagnostics  available  depends  on
  475.           the  debug  level  used by the server. If you have problems,
  476.           set the debug level to 3 and peruse the log files.
  477.  
  478.           Most    messages    are     reasonably     self-explanatory.
  479.           Unfortunately,  at  time  of  creation  of this man page the
  480.           source code is still too fluid to  warrant  describing  each
  481.           and  every  diagnostic. At this stage your best bet is still
  482.           to grep the source code and inspect the conditions that gave
  483.           rise to the diagnostics you are seeing.
  484.  
  485.  
  486.      SSSSIIIIGGGGNNNNAAAALLLLSSSS
  487.           In version 1.9.18 and above the debug log level of smbd  may
  488.           be  raised  by  sending it a SIGUSR1 (kill -USR1 <smbd-pid>)
  489.           and lowered by sending it a SIGUSR2 (kill -USR2 <smbd-pid>).
  490.           This  is to allow transient problems to be diagnosed, whilst
  491.           still running at a normally low log level.
  492.  
  493.           Note that as the signal handlers send a  debug  write,  they
  494.           are  not re-entrant in smbd. This you should wait until smbd
  495.           is in a state of waiting for an incoming smb before  issuing
  496.           them.  It  is  possible  to make the signal handlers safe by
  497.           un-blocking the signals  before  the  select  call  and  re-
  498.           blocking them after, however this would affect performance.
  499.  
  500.  
  501.      BBBBUUUUGGGGSSSS
  502.           None known.
  503.  
  504.      CCCCRRRREEEEDDDDIIIITTTTSSSS
  505.           The original  Samba  software  and  related  utilities  were
  506.           created  by  Andrew  Tridgell (samba-bugs@samba.anu.edu.au).
  507.           Andrew is also the Keeper of the Source for this project.
  508.  
  509.  
  510.           See ssssmmmmbbbb....ccccoooonnnnffff(5) for a full list of contributors and  details
  511.           on how to submit bug reports, comments etc.
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.      Page 8                                         (printed 10/26/98)
  526.  
  527.  
  528.  
  529.